package com.app.model;

import com.baomidou.mybatisplus.annotation.*;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 商品规格表
 * @author 16693103420
 * @since 2024-01-25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_goods_specs")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class GoodsSpecsModel implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;//商品规格表ID
    private String colour;//颜色
    private Integer number;//数量
    private Integer goodsId;//商品ID

    private String goodsFace;//商品规格图片
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;
    @Version
    private Integer version;//版本号
    @TableField(exist = false)
    private Integer addressId;
    @TableField(exist = false)
    private String password;
}
